package com.cb.eduservice.service;

import com.cb.eduservice.entity.EduVideo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author Cebb
 * @since 2020-06-22
 */
public interface EduVideoService extends IService<EduVideo> {

    /**
     * 根据课程id删除课程 , 且删除关联小节 , 和关联视频
     * @param courseId
     * 课程id
     */
    void removeByCourseId(String courseId);

    /**
     * 根据小节id删除关联信息
     * @param id
     * 小节id
     */
    boolean removeByVideoId(String id);
}
